package com.engine4cloud.tdf.supervision.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 法律文书-响应对象
 *
 * @author wenjie
 * @date 2024-04-01 14:23:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "法律文书-响应对象")
public class JzdxLegalInstrumentQueryDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 矫正对象编号
     */
    @Schema(description = "矫正对象编号")
    @NotBlank(message = "矫正对象编号不能为空")
    private String rybh;

    /**
     * 文书编号
     */
    @Schema(description = "文书编号")
    private String lcbh;

    /**
     * 文书类型
     */
    @Schema(description = "文书类型", example = "01")
    private String lx;

    public JzdxLegalInstrumentQueryDTO(String code) {
        this.rybh = code;
    }
}